<?php
if(!empty($data['data'])){
foreach($data['data'] as $key=>$val){
?>
<a class="n-btn n-btn-ccc m-button" href="<?=n_url($data['pevent'],$data['paction'],array('scode'=>$val['scode']))?>">
	<span><?=$val['name']?></span>
</a>
<?php
}
}
?>
